package logger;

import org.apache.log4j.Logger;

public class Log2 {
	
/*	private static String propsPath="/props/log4j.properties";
	private static Logger log;
	final static Properties prop = new Properties();
	
	InputStream in;*/


	/*private Log2(Class cl) throws IOException {
		log = Logger.getLogger(cl);
		in = DTGenerator.class.getResourceAsStream(propsPath);
		prop.load(in);
		PropertyConfigurator.configure(prop);
	}*/
	
		
	public static void trace(String trace,Class<?> cl){
		Logger.getLogger(cl).trace(trace);
	}
	
	public static void info(String info,Class<?> cl){
		Logger.getLogger(cl).info(info);
	}
	
	public static void debug(String debug,Class<?> cl){
		Logger.getLogger(cl).debug(debug);
	}
	
	public static void warn(String warn,Class<?> cl){
		Logger.getLogger(cl).warn(warn);
	}
	
	public static void error(String error,Class<?> cl){
		Logger.getLogger(cl).error(error);
	}
	
	public static void fatal(String fatal,Class<?> cl){
		Logger.getLogger(cl).fatal(fatal);
	}
}
